package com.example.edu.client;

import com.example.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = VodClientHystrix.class)
@Component
public interface VodClient {


    @DeleteMapping(value = "/admin/vod/video/deleteVideo/{id}")
    public Result deleteVideo(@PathVariable("id") String id);

    @DeleteMapping(value = "/admin/vod/video/deleteVideos")
    public Result deleteVideos(@RequestParam("videoIdList") List<String> ids);
}
